from browser import document, html
"""
python -m http.server
"""
colors = ["0","#BC0013","#EE8600","#E3C600","#4DC200","#00663A","#00CEE6","#0053C1","#7D319C"]
keys = ["0","do","re","mi","fa","so","la","si","do"]
m = """55555535653235
53532132332112
66536553235
5323532311231"""
for i in m:
    if i == "\n":
        document <= html.BR()
        document <= html.BR()
    else:
        document <= html.SPAN(keys[int(i)],
            style=dict(backgroundColor=colors[int(i)], paddingLeft="1em"))
        document <= html.SPAN("  ", style=dict(backgroundColor="white", paddingLeft="1em"))
